import vue from '@vitejs/plugin-vue'
import autoImport from './autoImport'
import setupMockPlugin from './mock'

// eslint-disable-next-line no-unused-vars
export default function setupPlugins(isBuild, env) {
  // console.log(isBuild, env, 'env')
  const plugins = [vue()]
  plugins.push(setupMockPlugin(isBuild))
  autoImport(plugins)
  return plugins
}
